package com.steak.javase.interfaces;

import java.util.function.Consumer;

/**
 * @author 刘牌
 * @Title:
 * @date 2022/3/2623:18
 */
public class ConsumerTest {
    public static void main(String[] args) {
        handConsumer(1000, (i) -> System.out.println(i));
    }

    public static void handConsumer(Integer number , Consumer<Integer> consumer){
        consumer.accept(number);
    }
}
